package com.bdd.mapper;


import com.bdd.entity.User;
import com.bdd.model.bo.UserBO;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserDAO {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectByUsernameAndPassword(String username,String password);

    Page<UserBO> selectAllUserBO();


    Page<UserBO> selectUserByIdOrUserName(Integer id, String username);


}